package com.blb.service.user;

import com.blb.pojo.UserAddress;

import java.sql.SQLException;
import java.util.List;

public interface IDeliverAddressService {

    /**
     * 查询所有地址数据
     * @return
     */
    List<UserAddress> getUserAddress() throws Exception;

    /**
     * 修改默认状态根据id
     * @param id
     */
    void reviseDefault(int id) throws SQLException, ClassNotFoundException;

    /**
     * 添加数据到地址数据库
     * @param address
     */
    void addAddress(UserAddress address) throws SQLException, ClassNotFoundException;

    /**
     * 根据id查找数据
     * @param id
     * @return
     */
    UserAddress getAddressById(String id) throws Exception;

    /**
     * 修改内容
     * @param id
     */
//    void reviseDefault(int id);
}
